FunnelWeb Startup

FunnelWeb's command line options can be divided into two groups. Action options instruct FunnelWeb to performs some sort of independent action such as processing a file. Ordinary options merely modify the way in which FunnelWeb executes the actions.

The four action options are: +F, +K, +X, and +H. For FunnelWeb to be successfully invoked, at least one action option must be specified. If zero action options are specified, FunnelWeb terminates with failure status. If more than one action option is specified, FunnelWeb performs the specified actions in a predefined order.

Assuming that the user has specified at least one action, the order in which actions are executed is as follows:

1cm 1cm Initialization script: FunnelWeb starts by looking in the current directory for a file called ``fwinit.fws''. If it doesn't find one, it doesn't raise any error. If it does find one, it executes it as a FunnelWeb shellscript. Initialization scripts are useful for setting up FunnelWeb options (e.g. using the ``set'' command without having to type them each time).

1cm 1cm Execute argument script: If a shellscript has been specified using the ``+X'' option, FunnelWeb executes it.

1cm 1cm Process input file: If the user has specified an input file using the ``+F'' option, then this is processed next (by FunnelWeb proper).

1cm 1cm Display help message: If the user requested, using the ``+H'' option, that a help message be displayed, the message is displayed at this time.

1cm 1cm Interactive mode: If the user specified the ``+K'' option, FunnelWeb enters interactive (keyboard) mode.

FunnelWeb processes these actions in the above order regardless of the order in which they appear on the command line.

It may be hard to see how some of these actions might be combined. Nevertheless, FunnelWeb allows this. For example, a user might wish to process a batch of files as specified in a script (``+Xscript.fws''), be reminded of the interactive commands available (``+Hcommand''), and then enter interactive mode so as to be able to reprocess files for which FunnelWeb reported errors (after correcting the errors in a different workstation window).